package com.hula.loan4u.base;


import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import butterknife.ButterKnife;

public abstract class MBaseViewHolder<T> extends RecyclerView.ViewHolder {
    protected Context mContext;

    public MBaseViewHolder(LayoutInflater mInflater, ViewGroup parent, int resId) {
        super(mInflater.inflate(resId, parent, false));
        ButterKnife.bind(this, itemView);
        mContext = mInflater.getContext();
        initView();
    }

    protected abstract void initView();

    public abstract void setData(T data);
}
